<template>
	<Table :Config="Config"></Table>
</template>
<script>
var dict_IsDel = [
	{ value: 0, label: '正常' },
	{ value: 1, label: '删除' },
];


var columns = [
    { title: '操作', dataIndex: 'action', width: 200, hidden: false, add: false, edit: false, },
    { title: '自增id', dataIndex: 'city_id', iskey: true, width: 150, hidden: false, add: false, edit: false, type: 'int' },
    { title: '添加时间', dataIndex: 'addtime', iskey: false, width: 165, hidden: true, add: false, edit: false, type: 'datetime' },
    { title: '添加时间戳', dataIndex: 'addtime_stamp', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'long' },
    { title: '添加用户', dataIndex: 'add_userid', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'int' },
    { title: '修改时间', dataIndex: 'update_lasttime', iskey: false, width: 165, hidden: true, add: false, edit: false, type: 'datetime' },
    { title: '修改时间戳', dataIndex: 'update_lasttime_stamp', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'long' },
    { title: '最后修改人', dataIndex: 'last_userid', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'int' },
    { title: '是否删除', dataIndex: 'isdel', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'int' },
     
    { title: '城市类型(0-国 1-省 2-市 3-区)', dataIndex: 'city_type', iskey: false, width: 150, hidden: true, add: true, edit: true, type: 'int' },
    { title: '城市编码', dataIndex: 'city_code', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'int' },
    { title: '编码层级', dataIndex: 'city_code_level', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'string' },
    { title: '字典名称', dataIndex: 'city_name', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'string' },
    { title: '名称层级', dataIndex: 'city_name_level', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'string' },
    { title: '父级主键ID', dataIndex: 'city_pid', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'int' },
    { title: '-', dataIndex: '占位' },
];

export default {
	components: {},
	data() {
		return {
			Config: {
				getPageUrl: '/manage/SystemCity/GetListByPage',
				getUrl: '/manage/SystemCity/GetById',
				addUrl: '/manage/SystemCity/Insert',
				editUrl: '/manage/SystemCity/Update',
				delUrl: '/manage/SystemCity/DeleteById',

				columns: columns,
				page: 1,
				pageSize: 10,

				navList: [
					{ to: '/', name: '首页' },
					{ to: '/', name: '用户' },
					{ to: '', name: '菜单管理' },
				],
				//action: [{ name: '外部', funName: 'fun_Event1', type: false }],
			},
		};
	},
	methods: {
		fun_Event1(record) {
			var temp = record;
		},
	},
};
</script>
